
package ro.imc.rest.client.services.forserver;

import java.util.List;

import ro.imc.rest.shared.dto.LearningObject;
import ro.imc.rest.shared.dto.RestLogin;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("rest")
public interface RestService extends RemoteService {
	//login can be made different 
	RestLogin loginToRestApi (String user, String passworld);
	
	//jersey methods to get items (includes gwt server side)
	List<LearningObject> getCoursesList(RestLogin user);
	void startCourse(RestLogin user, String courseId);
	void finishCourse(RestLogin user, String courseId);
	void bookCourse(RestLogin user, String courseId);
	
	//non jersey methods to get items (includes gwt server side)
	
	String getCoursesListResponse(RestLogin user);
	void startCourseResponse(RestLogin user, String courseId);
	void finishCourseResponse(RestLogin user, String courseId);
	void bookCourseResponse(RestLogin user, String courseId);
	
	
}
